﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassesMetiers
{
    public class Besoin
    {
        public int id;
        public String nom;
        
        public Besoin(String[] tab)
        {
            if (tab != null)
            {
                if (tab.Length > 1)
                {
                    id = int.Parse(tab[0]);
                    nom = tab[1];
                }
            }
        }


        public String[] versTableau()
        {
            return new String[] { id.ToString(), nom };
        }
    }
}
